package model

type Auth struct {
	//gorm.Model
	//Id       int    `gorm:"AUTO_INCREMENT"`
	//Username string `gorm:"type:varchar(50);not null;unique_index"`
	//Password string `gorm:"type:char(32);not null"`
	Id       int    
	Username string 
	Password string 
}

func FetchOne(username string) Auth {
	var auth Auth
	db.Debug().Where("username=?",username).First(&auth)
	return auth
}
